#!/bin/bash

onDIR=`pwd`
echo $onDIR

for (( c=10; c<=1500; c=c+30))
do
	workingDIR=$onDIR/outputs/flowjet_$c\_$c\_$c\_v1/data/
	cd $workingDIR
	hadd output.root *
	mv output.root $onDIR/outputs/output_$c.root
	cd $onDIR
done
